<%--
  Created by IntelliJ IDEA.
  User: Shisanyang
  Date: 2020/2/7
  Time: 14:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<% pageContext.setAttribute("contextPath", request.getContextPath());%>
<html>
<head>
    <title>员工信息修改</title>
</head>
<body>
<form:form action="${contextPath}/emp/${employee.id}" modelAttribute="employee" method="post">
    <input type="hidden" name="_method" value="PUT"/>
    <input type="hidden" name="lastName" value="${employee.lastName}"/>
    用户名：${employee.lastName}<br/>
    邮箱:<form:input path="email"/><br>
    性别：&nbsp;&nbsp;&nbsp;
    男:<form:radiobutton path="gender" value="1"/>&nbsp;&nbsp;&nbsp;
    女:<form:radiobutton path="gender" value="0"/><br/>
    生日:<form:input path="birth"/><br/>
    薪水：<form:input path="salary"/>
    dept:
    <form:select path="department.id" items="${depts }" itemLabel="departmentName" itemValue="id"/>
    <br/>
    <input type="submit" value="修改"/>
</form:form>
</body>
</html>
